﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class News_News : System.Web.UI.Page
{
    protected void Page_PreInit(object sender, EventArgs e)
    {
        Page.Theme = BLL.Common.GetWSThemes();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Init_Content();
        }
    }
    private void Init_Content()
    {
        if (Request.QueryString["newid"] != null)
        {
            Model.NEWS news = new Model.NEWS();
            news = new BLL.NEWS().GetModel(int.Parse(Request.QueryString["newid"].ToString()));
            NewsName.Text = "-->"+news.NEW_TYPENAME+"-->"+news.NEW_TITLE;
            content.InnerHtml = news.NEW_CONTENT;
            this.Page.Title = "当前位置：" + NewsName.Text + " " + BasePage.WebTitle;
        }

    }
}
